package com.bjpowernode.services;

import com.bjpowernode.entities.TUser;
import com.bjpowernode.querys.UserQuery;
import com.github.pagehelper.PageInfo;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

//我们的处理登录的service接口，需要继承spring security框架的UserDetailsService接口
public interface UserService extends UserDetailsService {
    TUser getUserById(Integer id);

    PageInfo<TUser> getUsersByPage(Integer current);

    List<TUser> getOwners();

    int addUser(UserQuery userQuery);

    int updateUser(UserQuery userQuery);

    int deleteUserById(Integer id);

    int batchDeleteUsersByIds(List<String> idList);
}


